package com.lehoon.tomato.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SupplierFundRecord extends Model<SupplierFundRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 供应商用户id
     */
    private Integer aid;

    private Integer supplierId;

    private String title;

    /**
     * 我的资产
     */
    private BigDecimal remaining;

    /**
     * 变更的钱数
     */
    private BigDecimal changeMoney;

    /**
     * 1）增加，0）减少
     */
    private Integer changeType;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 1完成2提现审核中3提现完成
     */
    private Integer state;

    /**
     * 1销售收入，2订单取消，3申请提现，4提现失败，5）商品不足退回店长金额
     */
    private Boolean type;

    /**
     * 相关联id
     */
    private String rationId;

    /**
     * 描述
     */
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
